package org.com.behavioralPattern.commandPattern;

import javax.swing.*;

/**
 * @author Jonny
 * @version 1.0
 * @Description:
 * @date 2021/4/15 18:06
 */
public class ExitCommand extends JButton implements MyCommand {

    public ExitCommand(String name){
        super(name);
    }

    @Override
    public void execute() {
        System.exit(0);
    }
}
